home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / mdipad.zip / PORT.H < prev    next >
Text File  |  1993-02-17  |  1KB  |  41 lines

  1. // ************************************************************************
  2. //
  3. //                      Microsoft Developer Support
  4. //               Copyright (c) 1992, 1993 Microsoft Corporation
  5. //
  6. // ************************************************************************
  7. // HEADER    : Port.H
  8. // PURPOSE   : A Win16/Win32 Sample Application Porting Macros Header File
  9. //             which provide the macros that will allow the application to
  10. //             compile for Win16 (Windows 3.x) or Win32 (Windows NT)
  11. // COMMENTS  :
  12. //
  13. // ************************************************************************
  14.  
  15. #if !defined( WIN32 ) && !defined( WIN32S )
  16.  #include <ToolHelp.H>
  17.  
  18.  typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND, UINT, WPARAM, LPARAM);
  19.  typedef UINT (CALLBACK *LPCCHOOKPROC)(HWND, UINT, WPARAM, LPARAM);
  20.  
  21.  #define INT                int
  22.  #define TCHAR              char
  23.  #define TEXT(quote)        quote
  24.  #define LPTSTR             LPSTR
  25.  #define LPCTSTR            LPCSTR
  26.  #define WM_CTLCOLORLISTBOX WM_CTLCOLOR
  27.  
  28.  #define UNREFERENCED_PARAMETER( param )
  29.  
  30.  #define POINTS     POINT
  31.  #define MAKEPOINTS MAKEPOINT
  32.  
  33.  #define ExitProcess( nExitCode ) PostQuitMessage( nExitCode )
  34.  #define GetLastError() 0
  35. #endif
  36.  
  37. #ifdef WIN32S
  38.   #undef wsprintf
  39.   #define wsprintf wsprintfA
  40. #endif
  41.